package com.czxy.changgou3.com.czxy.changgou3.mapper;


import com.czxy.changgou3.pojo.Impression;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by liangtong.
 */
@org.apache.ibatis.annotations.Mapper
public interface ImpressionMapper extends Mapper<Impression> {
    /**
     * 查询指定spu的所有印象
     * @param spuId
     * @return
     */
    @Select("select * from tb_impression where spu_id = #{spuId} ")
    public List<Impression> findAllBySpuId(@Param("spuId") Integer spuId);
}
